package com.zkyc.framework.user;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import com.zkyc.framework.common.constant.Constant;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.util.TimeZone;

@EnableFeignClients
@EnableDiscoveryClient
@SpringBootApplication(scanBasePackages = "com.zkyc.framework")
@ServletComponentScan
@MapperScan(basePackages = {"com.zkyc.framework.common.mapper","com.zkyc.framework.user.mapper"})
public class ServiceUserApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServiceUserApplication.class, args);
        System.out.println("***Service-User START***");
    }
 @PostConstruct
    void started(){
        TimeZone.setDefault(TimeZone.getTimeZone("GMT+8"));
    }
}
